package com.framework.loippi.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.framework.loippi.dao.TBbsDao;
import com.framework.loippi.entity.TBbs;
import com.framework.loippi.service.TBbsService;
import java.util.List;
/**
 * SERVICE - TBbs(论坛发布记录表)
 * 
 * @author wmj
 * @version 2.0
 */
@Service
public class TBbsServiceImpl extends GenericServiceImpl<TBbs, Long> implements TBbsService {
	
	@Autowired
	private TBbsDao tBbsDao;
	
	
	@Autowired
	public void setGenericDao() {
		super.setGenericDao(tBbsDao);
	}

	public List<TBbs> findListByPage(Object parameter){
		return tBbsDao.findListByPage(parameter);
	}

	public Long deletes(Object parameter){
		return tBbsDao.deletes( parameter);
	}

	@Override
	public List<TBbs> findByUserId(Long userId, Integer cur, Integer pageSize) {
	    return tBbsDao.findByUserId(userId, cur, pageSize);
	}

	@Override
	public List<TBbs> findAllByPage(Integer cur, Integer pageSize) {
		return tBbsDao.findAllByPage(cur, pageSize);
	}


}
